var array = []
array.push(6);
array.push(5);
array.push(4);
console.log(array.pop());
console.log(array.pop());
array.push(3);
console.log(array.pop());
array.push(2);
console.log(array.pop());
array.push(1);
console.log(array.pop());
console.log(array.pop());


